package tech.aistar.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Order;
import tech.aistar.mapper.OrderMapper;

import java.util.List;

/**
 * 本类用来演示
 *
 * @author success
 * @date 2023/3/12 22:17:27
 */
@Service
public class OrderService implements OrderMapper {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> findAll() {
        return orderMapper.findAll();
    }

    @Override
    public Order getOrder(int id) {
        return orderMapper.getOrder(id);
    }

    @Override
    public int delete(int id) {
        return orderMapper.delete(id);
    }

    @Override
    public int save(Order order) {
        return orderMapper.save(order);
    }

    @Override
    public int update(Order order) {
        return orderMapper.update(order);
    }
}
